﻿using System;
using System.Collections.Generic;
using MyAMS.WebServer.Models;

namespace MyAMS.WebServer.Services
{
    /// <summary>
    /// 节点服务
    /// </summary>
    public interface INodeService
    {
        /// <summary>
        /// 获取所有节点
        /// </summary>
        /// <returns>所有节点</returns>
        IEnumerable<Node> GetNodes();

        /// <summary>
        /// 根据节点ID获取指定节点
        /// </summary>
        /// <param name="ID">节点ID</param>
        /// <returns>节点</returns>
        Node Get(Guid ID);

        /// <summary>
        /// 根据地址获取指定节点
        /// </summary>
        /// <param name="uri">地址</param>
        /// <returns>节点</returns>
        Node Get(Uri uri);
    }
}
